popovermenu: Cycle around focus also with (Shift+)Tab
authorvanadiae <vanadiae35@gmail.com>
Mon, 5 Jul 2021 17:20:58 +0000 (19:20 +0200)
committervanadiae <vanadiae35@gmail.com>
Wed, 4 Aug 2021 10:11:44 +0000 (12:11 +0200)
commitef92adc87d64a37926a91d96b4ac22e7f929d954
tree225aad94dc8594c52247868628c54273e24083c4
parentca547b87168f2a1354af099464a76f670b5973e9
popovermenu: Cycle around focus also with (Shift+)Tab

Currently when moving the focus with (Shift+)Tab, it also traverses the window's
widgets, although it would be expected that the focus stays within the popover,
as it's (almost) like it's a separate window. This would be consistent with
the behaviour of the Up/down arrows, which do cycle around the focus once it
reaches the end.

So this commit makes the popovermenu cycle around focus in any direction, apart
from left/right because they are used to open and close submenus and it wouldn't
make sense anyway to cycle horizontally as there's usually only one widget per
line.
gtk/gtkpopovermenu.c